package com.zyf.service;


import com.zyf.mapper.UserInfoMapper;
import com.zyf.pojo.Userinfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class UserInfoServiceImpl implements UserInfoService{

    @Resource
    UserInfoMapper mapper;


    @Override
    public Userinfo login(Userinfo userinfo) {
        return mapper.login(userinfo);
    }

    @Override
    public Userinfo findOne(Integer userid) {
        return mapper.findOne(userid);
    }
}
